﻿using System;

/*像素内容的类型，用于碰撞检测*/
public enum PixelContentType
{
	SnakeBody,
	Food,
	Blank,
}

/*代表一个像素，储存像素需要显示的字符，以及像素显示内容的类型*/
public class PixelContent
{
	public char element { get; private set; } = '-';
	public PixelContentType contentType { get; private set; } = PixelContentType.Blank;

	public PixelContent(char element, PixelContentType contentType)
	{
		this.element = element;
		this.contentType = contentType;
	}

	public void SetPixelContent(char element, PixelContentType contentType)
	{
		this.element = element;
		this.contentType = contentType;
	}
}
